<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <title>糖尿病知识科普</title>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6', // 蓝色作为主色调，代表信任和专业
                        secondary: '#F97316', // 橙色作为辅助色，代表活力
                        neutral: {
                            100: '#F3F4F6',
                            200: '#E5E7EB',
                            300: '#D1D5DB',
                            400: '#9CA3AF',
                            500: '#6B7280',
                            600: '#4B5563',
                            700: '#374151',
                            800: '#1F2937',
                            900: '#111827',
                        }
                    },
                    fontFamily: {
                        inter: ['Inter', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .btn-primary {
                @apply bg-primary hover:bg-primary/90 text-white font-medium py-2 px-4 rounded-lg transition-all duration-300 shadow-md hover:shadow-lg;
            }
            .section-padding {
                @apply py-12 md:py-16;
            }
            .text-balance {
                text-wrap: balance;
            }
        }
    </style>
</head>

<body class="font-inter bg-neutral-100 text-neutral-800">
    <!-- 导航栏 -->
    <header class="fixed w-full top-0 z-50 transition-all duration-300" id="navbar">
        <nav class="bg-blue-600 text-white shadow-md  p-4 h-16">
            <div class="container mx-auto  flex justify-between items-center">
                <div class="flex items-center space-x-2">
                    <i class="fa-solid fa-heartbeat text-xl"></i>
                    <h1 class="text-xl md:text-2xl font-bold">糖尿病知识科普</h1>
                </div>
                <div class="hidden md:flex space-x-4">
                    <a href="{{ url_for('dashboard') }}" class="hover:text-neutral-200 transition-colors duration-200">数据大屏</a>
                    <a href="{{ url_for('home') }}" class="hover:text-neutral-200 transition-colors duration-200">首页</a>
                    <a href="{{ url_for('index') }}" class="hover:text-neutral-200 transition-colors duration-200">预测</a>
                    <a href="{{ url_for('user') }}" class="hover:text-neutral-200 transition-colors duration-200">用户</a>
                </div>
                <div class="md:hidden">
                    <button id="menu-toggle" class="text-white focus:outline-none">
                        <i class="fa-solid fa-bars text-xl"></i>
                    </button>
                </div>
            </div>
            <!-- 移动端菜单 -->
            <div id="mobile-menu" class="hidden md:hidden bg-primary/95 backdrop-blur-sm">
                <div class="container mx-auto px-4 py-3 flex flex-col space-y-3">
                    <a href="{{ url_for('dashboard') }}" class="hover:text-neutral-200 transition-colors duration-200">数据大屏</a>
                    <a href="{{ url_for('home') }}" class="hover:text-neutral-200 transition-colors duration-200">首页</a>
                    <a href="{{ url_for('index') }}" class="hover:text-neutral-200 transition-colors duration-200">预测</a>
                    <a href="{{ url_for('user') }}" class="hover:text-neutral-200 transition-colors duration-200">用户</a>
                </div>
            </div>
        </nav>
    </header>

    <!-- 英雄区域 -->
    <section id="home" class="pt-28 pb-16 md:pt-36 md:pb-24 bg-gradient-to-br from-primary/5 to-secondary/5">
        <div class="container mx-auto px-4">
            <div class="max-w-4xl mx-auto text-center">
                <h1 class="text-[clamp(2rem,5vw,3.5rem)] font-bold text-neutral-800 mb-6">
                    糖尿病知识科普
                </h1>
                <p class="text-[clamp(1rem,2vw,1.25rem)] text-neutral-600 mb-8 text-balance">
                    了解糖尿病的症状、预防和治疗方法，掌控健康生活
                </p>
                <div class="relative rounded-2xl overflow-hidden shadow-xl mb-8 aspect-w-16 aspect-h-9">
                    <img src="../static/homeimg/img1.png" alt="糖尿病科普" class="w-full h-full object-cover">
                    <div class="absolute inset-0 bg-gradient-to-t from-black/60 to-transparent flex items-end">
                        <div class="p-6 md:p-8 text-white">
                            <h2 class="text-2xl md:text-3xl font-bold mb-2">全球糖尿病患者超8.3亿</h2>
                            <p class="text-lg">了解如何预防和管理糖尿病</p>
                        </div>
                    </div>
                </div>
                <a href="#symptoms" class="btn-primary inline-flex items-center">
                    了解更多 <i class="fa-solid fa-arrow-right ml-2"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- 重要事实卡片 -->
    <section class="py-12 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl md:text-3xl font-bold text-center mb-12">糖尿病重要事实</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
                <!-- 事实卡片1 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-md card-hover">
                    <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mb-4">
                        <i class="fa-solid fa-users text-primary text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">患者数量</h3>
                    <p class="text-neutral-600">糖尿病患者人数从1990年的2亿上升至2022年的8.3亿</p>
                </div>

                <!-- 事实卡片2 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-md card-hover">
                    <div class="w-12 h-12 bg-secondary/10 rounded-full flex items-center justify-center mb-4">
                        <i class="fa-solid fa-hospital text-secondary text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">治疗现状</h3>
                    <p class="text-neutral-600">2022年，半数以上糖尿病患者没有服用治疗糖尿病的药物</p>
                </div>

                <!-- 事实卡片3 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-md card-hover">
                    <div class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mb-4">
                        <i class="fa-solid fa-ban text-primary text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">并发症</h3>
                    <p class="text-neutral-600">糖尿病可导致失明、肾衰竭、心脏病发作、中风和下肢截肢</p>
                </div>

                <!-- 事实卡片4 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-md card-hover">
                    <div class="w-12 h-12 bg-secondary/10 rounded-full flex items-center justify-center mb-4">
                        <i class="fa-solid fa-skull-crossbones text-secondary text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">死亡人数</h3>
                    <p class="text-neutral-600">2021年，糖尿病及其并发症造成约200万例死亡</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 症状部分 -->
    <section id="symptoms" class="section-padding bg-neutral-50">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl md:text-3xl font-bold mb-8">糖尿病症状</h2>
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-center">
                <div>
                    <p class="text-lg mb-6">糖尿病的症状可能会突然发生。2型糖尿病的症状可能很轻微，可能需要很多年才能注意到。</p>
                    <div class="space-y-4">
                        <div class="bg-white p-5 rounded-lg shadow-sm card-hover">
                            <div class="flex items-start">
                                <div class="bg-primary/10 p-3 rounded-full mr-4">
                                    <i class="fa-solid fa-tint text-primary"></i>
                                </div>
                                <div>
                                    <h3 class="text-xl font-bold mb-2">常见症状</h3>
                                    <ul class="space-y-2">
                                        <li class="flex items-center"><i class="fa-solid fa-check text-green-500 mr-2"></i> 感觉很渴</li>
                                        <li class="flex items-center"><i class="fa-solid fa-check text-green-500 mr-2"></i> 需要比平时更频繁地排尿</li>
                                        <li class="flex items-center"><i class="fa-solid fa-check text-green-500 mr-2"></i> 视力模糊</li>
                                        <li class="flex items-center"><i class="fa-solid fa-check text-green-500 mr-2"></i> 感到疲倦</li>
                                        <li class="flex items-center"><i class="fa-solid fa-check text-green-500 mr-2"></i> 无意中减肥</li>
                                    </ul>
                                </div>
                            </div>
                        </div>

                        <div class="bg-white p-5 rounded-lg shadow-sm card-hover">
                            <div class="flex items-start">
                                <div class="bg-secondary/10 p-3 rounded-full mr-4">
                                    <i class="fa-solid fa-exclamation-triangle text-secondary"></i>
                                </div>
                                <div>
                                    <h3 class="text-xl font-bold mb-2">长期并发症</h3>
                                    <p>随时间推移，糖尿病可能损害心脏、眼睛、肾脏和神经的血管。</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="relative">
                    <img src="../static/homeimg/img2.png" alt="糖尿病症状" class="rounded-xl shadow-lg w-full h-auto max-h-96">
                    <div class="absolute -bottom-4 -left-4 bg-white p-4 rounded-lg shadow-lg max-w-xs">
                        <p class="italic text-neutral-600">"早期识别糖尿病症状对于有效管理疾病至关重要"</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 预防部分 -->
    <section id="prevention" class="section-padding bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl md:text-3xl font-bold mb-8">糖尿病预防</h2>
            <p class="text-lg mb-10 max-w-3xl">调整生活方式是预防或延缓2型糖尿病发作的最佳方式。以下是一些关键的预防措施：</p>

            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <!-- 预防措施1 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-sm card-hover">
                    <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-4 mx-auto">
                        <i class="fa-solid fa-balance-scale text-primary text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-center mb-3">健康体重</h3>
                    <p class="text-neutral-600 text-center">达到并保持健康的体重，减少肥胖相关风险</p>
                </div>

                <!-- 预防措施2 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-sm card-hover">
                    <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-4 mx-auto">
                        <i class="fa-solid fa-dumbbell text-primary text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-center mb-3">身体活动</h3>
                    <p class="text-neutral-600 text-center">每周至少进行150分钟的适度运动，如快走、游泳或骑自行车</p>
                </div>

                <!-- 预防措施3 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-sm card-hover">
                    <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-4 mx-auto">
                        <i class="fa-solid fa-apple-whole text-primary text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-center mb-3">健康饮食</h3>
                    <p class="text-neutral-600 text-center">保证健康饮食，避免高糖和饱和脂肪，多吃蔬菜和全谷物</p>
                </div>

                <!-- 预防措施4 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-sm card-hover">
                    <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-4 mx-auto">
                        <i class="fa-solid fa-smoking-ban text-primary text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-center mb-3">不抽烟</h3>
                    <p class="text-neutral-600 text-center">戒烟可显著降低患糖尿病和心血管疾病的风险</p>
                </div>

                <!-- 预防措施5 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-sm card-hover">
                    <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-4 mx-auto">
                        <i class="fa-solid fa-heart-pulse text-primary text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-center mb-3">定期体检</h3>
                    <p class="text-neutral-600 text-center">定期检查血糖和血压，早期发现问题</p>
                </div>

                <!-- 预防措施6 -->
                <div class="bg-neutral-50 rounded-xl p-6 shadow-sm card-hover">
                    <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-4 mx-auto">
                        <i class="fa-solid fa-bed text-primary text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-center mb-3">充足睡眠</h3>
                    <p class="text-neutral-600 text-center">保持良好的睡眠习惯，每晚7-9小时</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 治疗部分 -->
    <section id="treatment" class="section-padding bg-neutral-50">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl md:text-3xl font-bold mb-8">糖尿病治疗</h2>
            <p class="text-lg mb-10 max-w-3xl">糖尿病的治疗包括生活方式调整、药物治疗和定期监测，以控制血糖水平并预防并发症。</p>

            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                <div>
                    <div class="bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="bg-primary p-4 text-white">
                            <h3 class="text-xl font-bold">治疗方法</h3>
                        </div>
                        <div class="p-6">
                            <div class="space-y-6">
                                <div>
                                    <h4 class="text-lg font-bold mb-2 flex items-center">
                                        <i class="fa-solid fa-stethoscope text-primary mr-2"></i>
                                        药物治疗
                                    </h4>
                                    <p class="text-neutral-600 mb-3">一些2型糖尿病患者需要服用药物来帮助控制血糖水平。</p>
                                    <ul class="space-y-2 pl-6">
                                        <li class="list-disc text-neutral-600">二甲双胍</li>
                                        <li class="list-disc text-neutral-600">磺酰脲类</li>
                                    </ul>
                                </div>

                                <div>
                                    <h4 class="text-lg font-bold mb-2 flex items-center">
                                        <i class="fa-solid fa-apple-whole text-primary mr-2"></i>
                                        饮食控制
                                    </h4>
                                    <p class="text-neutral-600">健康饮食是糖尿病管理的基础，应避免高糖和高脂肪食物，增加膳食纤维摄入。</p>
                                </div>

                                <div>
                                    <h4 class="text-lg font-bold mb-2 flex items-center">
                                        <i class="fa-solid fa-dumbbell text-primary mr-2"></i>
                                        运动治疗
                                    </h4>
                                    <p class="text-neutral-600">经常体育锻炼有助于减轻体重、降低血糖。</p>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>

                <div>
                    <div class="bg-white rounded-xl shadow-md overflow-hidden">
                        <div class="bg-secondary p-4 text-white">
                            <h3 class="text-xl font-bold">并发症管理</h3>
                        </div>
                        <div class="p-6">
                            <p class="text-neutral-600 mb-6">除降低血糖的药物外，糖尿病患者通常还需要降压药和他汀类药物来降低并发症风险。</p>

                            <div class="space-y-4">
                                <div class="flex items-start">
                                    <div class="bg-secondary/10 p-2 rounded-full mr-3">
                                        <i class="fa-solid fa-eye text-secondary"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-bold mb-1">视网膜病变筛查</h4>
                                        <p class="text-sm text-neutral-600">定期检查眼睛，预防糖尿病导致的失明风险</p>
                                    </div>
                                </div>

                                <div class="flex items-start">
                                    <div class="bg-secondary/10 p-2 rounded-full mr-3">
                                        <i class="fa-solid fa-kidneys text-secondary"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-bold mb-1">肾脏疾病监测</h4>
                                        <p class="text-sm text-neutral-600">定期检测肾功能，预防糖尿病肾病</p>
                                    </div>
                                </div>

                                <div class="flex items-start">
                                    <div class="bg-secondary/10 p-2 rounded-full mr-3">
                                        <i class="fa-solid fa-feet text-secondary"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-bold mb-1">足部护理</h4>
                                        <p class="text-sm text-neutral-600">定期检查足部，预防溃疡和截肢风险</p>
                                    </div>
                                </div>

                                <div class="flex items-start">
                                    <div class="bg-secondary/10 p-2 rounded-full mr-3">
                                        <i class="fa-solid fa-heart text-secondary"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-bold mb-1">心血管健康管理</h4>
                                        <p class="text-sm text-neutral-600">控制血压和血脂，降低心血管疾病风险</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 世卫组织部分 -->
    <section id="who" class="section-padding bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl md:text-3xl font-bold mb-8">世卫组织的应对</h2>
            <div class="bg-primary/5 rounded-xl p-6 md:p-8 border-l-4 border-primary mb-8">
                <p class="text-lg italic text-neutral-700">"世卫组织的目标是鼓励和支持采取有效措施，以监测、预防和控制糖尿病及其并发症，尤其是在低收入和中等收入国家。"</p>
            </div>

            <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-xl font-bold mb-4">主要行动</h3>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <i class="fa-solid fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <span>提供预防主要非传染性疾病（包括糖尿病）的科学指南</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa-solid fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <span>制定糖尿病诊断和护理规范和标准</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa-solid fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <span>提高对全球糖尿病流行的认识，开展世界糖尿病日（11月14日）宣传活动</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa-solid fa-check-circle text-green-500 mt-1 mr-3"></i>
                            <span>监测糖尿病及其风险因素</span>
                        </li>
                    </ul>

                    <div class="mt-8">
                        <h3 class="text-xl font-bold mb-4">全球糖尿病契约</h3>
                        <p class="text-neutral-600 mb-4">2021年4月，世卫组织启动了《全球糖尿病契约》，这是一项旨在持续改善糖尿病预防和护理的全球行动，特别侧重于支持低收入和中等收入国家。</p>
                        <a href="https://www.who.int/initiatives/the-who-global-diabetes-compact" class="text-primary hover:text-primary/80 font-medium flex items-center">
                            了解更多 <i class="fa-solid fa-arrow-right ml-2"></i>
                        </a>
                    </div>
                </div>

                <div class="relative">
                    <!-- 新增容器控制图片尺寸 -->
                    <div class="h-64 md:h-80 rounded-xl shadow-lg overflow-hidden">
                        <img src="../static/homeimg/img3.png" alt="世卫组织糖尿病应对" class="w-full h-full object-cover">
                    </div>
                    <!-- 调整定位元素位置 -->
                    <div class="absolute -top-4 -right-4 bg-white p-4 rounded-lg shadow-lg max-w-xs">
                        <p class="text-neutral-700">2022年5月，世界卫生大会批准了到2030年应实现的五项全球糖尿病防治覆盖目标。</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 常见问题 -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl md:text-3xl font-bold mb-10 text-center">常见问题</h2>

            <div class="max-w-3xl mx-auto">
                <div class="space-y-4">
                    <!-- 问题1 -->
                    <div class="border border-neutral-200 rounded-lg overflow-hidden">
                        <button class="faq-toggle w-full text-left p-5 bg-neutral-50 hover:bg-neutral-100 transition-colors duration-200 flex justify-between items-center">
                            <span class="font-bold">糖尿病可以治愈吗？</span>
                            <i class="fa-solid fa-plus text-primary"></i>
                        </button>
                        <div class="faq-content hidden p-5 border-t border-neutral-200">
                            <p class="text-neutral-600">1型糖尿病无法治愈，但可以通过胰岛素治疗和生活方式管理来控制。2型糖尿病在早期阶段可以通过饮食、运动和体重管理得到缓解，甚至可能达到临床缓解状态，但需要长期维持健康的生活方式。</p>
                        </div>
                    </div>

                    <!-- 问题2 -->
                    <div class="border border-neutral-200 rounded-lg overflow-hidden">
                        <button class="faq-toggle w-full text-left p-5 bg-neutral-50 hover:bg-neutral-100 transition-colors duration-200 flex justify-between items-center">
                            <span class="font-bold">糖尿病患者可以吃水果吗？</span>
                            <i class="fa-solid fa-plus text-primary"></i>
                        </button>
                        <div class="faq-content hidden p-5 border-t border-neutral-200">
                            <p class="text-neutral-600">是的，糖尿病患者可以吃水果，但应选择低糖水果，如苹果、蓝莓、草莓、橙子等，并注意控制份量。避免果汁和高糖水果，如荔枝和芒果。</p>
                        </div>
                    </div>

                    <!-- 问题3 -->
                    <div class="border border-neutral-200 rounded-lg overflow-hidden">
                        <button class="faq-toggle w-full text-left p-5 bg-neutral-50 hover:bg-neutral-100 transition-colors duration-200 flex justify-between items-center">
                            <span class="font-bold">糖尿病会遗传吗？</span>
                            <i class="fa-solid fa-plus text-primary"></i>
                        </button>
                        <div class="faq-content hidden p-5 border-t border-neutral-200">
                            <p class="text-neutral-600">糖尿病有遗传倾向，尤其是2型糖尿病。如果父母或兄弟姐妹患有糖尿病，个体患病的风险会增加。然而，生活方式因素（如饮食和运动）在糖尿病发展中也起着重要作用。</p>
                        </div>
                    </div>

                    <!-- 问题4 -->
                    <div class="border border-neutral-200 rounded-lg overflow-hidden">
                        <button class="faq-toggle w-full text-left p-5 bg-neutral-50 hover:bg-neutral-100 transition-colors duration-200 flex justify-between items-center">
                            <span class="font-bold">糖尿病患者需要定期体检吗？</span>
                            <i class="fa-solid fa-plus text-primary"></i>
                        </button>
                        <div class="faq-content hidden p-5 border-t border-neutral-200">
                            <p class="text-neutral-600">是的，糖尿病患者应定期进行体检，包括血糖监测、血压检查、肾功能检查、眼底检查和足部检查等，以早期发现并预防并发症。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="bg-neutral-800 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-xl font-bold mb-4">糖尿病知识科普</h3>
                    <p class="text-neutral-400">提供糖尿病相关的知识、预防方法和治疗建议，帮助人们更好地管理和预防糖尿病。</p>
                </div>

                <div>
                    <h3 class="text-lg font-bold mb-4">快速链接</h3>
                    <ul class="space-y-2">
                        <li><a href="{{ url_for('dashboard') }}" class="text-neutral-400 hover:text-white transition-colors duration-200">数据大屏</a></li>
                        <li><a href="{{ url_for('home') }}" class="text-neutral-400 hover:text-white transition-colors duration-200">首页</a></li>
                        <li><a href="{{ url_for('index') }}" class="text-neutral-400 hover:text-white transition-colors duration-200">预测</a></li>
                        <li><a href="{{ url_for('user') }}" class="text-neutral-400 hover:text-white transition-colors duration-200">用户</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-lg font-bold mb-4">资源</h3>
                    <ul class="space-y-2">
                        <li><a href="https://www.who.int/" class="text-neutral-400 hover:text-white transition-colors duration-200">世界卫生组织</a></li>
                        <li><a href="https://www.diabetes.org/" class="text-neutral-400 hover:text-white transition-colors duration-200">国际糖尿病联盟</a></li>
                        <li><a href="https://www.cdc.gov/diabetes/index.html" class="text-neutral-400 hover:text-white transition-colors duration-200">美国疾病控制与预防中心</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-lg font-bold mb-4">联系我们</h3>
                    <ul class="space-y-2">
                        <li class="flex items-center">
                            <i class="fa-solid fa-envelope text-primary mr-2"></i>
                            <a href="mailto:info@diabetesinfo.org" class="text-neutral-400 hover:text-white transition-colors duration-200">abc@defghi.com</a>
                        </li>
                        <li class="flex items-center">
                            <i class="fa-solid fa-phone text-primary mr-2"></i>
                            <span class="text-neutral-400">+1 (123) 456-7890</span>
                        </li>
                    </ul>
                    <div class="mt-4 flex space-x-4">
                        <a href="#" class="text-neutral-400 hover:text-white transition-colors duration-200">
                            <i class="fa-brands fa-facebook"></i>
                        </a>
                        <a href="#" class="text-neutral-400 hover:text-white transition-colors duration-200">
                            <i class="fa-brands fa-twitter"></i>
                        </a>
                        <a href="#" class="text-neutral-400 hover:text-white transition-colors duration-200">
                            <i class="fa-brands fa-instagram"></i>
                        </a>
                        <a href="#" class="text-neutral-400 hover:text-white transition-colors duration-200">
                            <i class="fa-brands fa-linkedin"></i>
                        </a>
                    </div>
                </div>
            </div>

        </div>
    </footer>

    <script>
        // 导航栏滚动效果
        const navbar = document.getElementById('navbar');
        window.addEventListener('scroll', () => {
            if (window.scrollY > 50) {
                navbar.classList.add('bg-primary/95', 'backdrop-blur-sm', 'shadow-md');
                navbar.classList.remove('bg-primary');
            } else {
                navbar.classList.add('bg-primary');
                navbar.classList.remove('bg-primary/95', 'backdrop-blur-sm', 'shadow-md');
            }
        });

        // 移动端菜单切换
        const menuToggle = document.getElementById('menu-toggle');
        const mobileMenu = document.getElementById('mobile-menu');
        menuToggle.addEventListener('click', () => {
            mobileMenu.classList.toggle('hidden');
        });

        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const targetId = this.getAttribute('href');
                if (targetId === '#') return;

                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });

                    // 如果是移动端，点击后关闭菜单
                    if (window.innerWidth < 768) {
                        mobileMenu.classList.add('hidden');
                    }
                }
            });
        });

        // FAQ手风琴效果
        const faqToggles = document.querySelectorAll('.faq-toggle');
        faqToggles.forEach(toggle => {
            toggle.addEventListener('click', () => {
                const content = toggle.nextElementSibling;
                const icon = toggle.querySelector('i');

                content.classList.toggle('hidden');
                if (content.classList.contains('hidden')) {
                    icon.classList.remove('fa-minus');
                    icon.classList.add('fa-plus');
                } else {
                    icon.classList.remove('fa-plus');
                    icon.classList.add('fa-minus');
                }
            });
        });
    </script>
</body>

</html>